package com.vogue.supplymall.admin.business.domain.mapper;

import com.vogue.ssm.database.util.SqlLangDriver;
import com.vogue.supplymall.admin.business.domain.model.AdminPrivatePlatform;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * The interface Admin private platform mapper.
 *
 * @author zhangliang
 * @date Create in 2018-07-09
 */
@Mapper
public interface AdminPrivatePlatformMapper extends BaseMapper<AdminPrivatePlatform, Long> {

    /**
     * 查询可显示的私有化平台
     */
    //@Select("select * from admin_private_platform s where disabledflag=0 and isshow=1 ")
    @Select("select * from admin_private_platform s where disabledflag=0 and isshow=1 and seq is not null order by seq ")
    @Lang(SqlLangDriver.class)
    List<AdminPrivatePlatform> findPrivatePlatformBySql();
}
